#include<iostream>
#include<string>
#include<cctype>
using namespace std;

int main(){
    string str,xstr;
    bool has_punct=false;
    char ch;
    
    cout<<"Enter a string:"<<endl;
    getline(cin,str);
    for(string::size_type index=0;index!=str.size();index++)
    {
        ch=str[index];
        if(ispunct(ch))
          has_punct=true;
        else xstr+=ch;
    }
    if(has_punct)
      cout<<"result:"<<endl<<xstr<<endl;
    else {cout<<"No pounctuation character in the string?!"<<endl;
         return -1; 
    }
    return 0;
}
